<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>
        <tr id="#tbData">
            <th>Id</th>
            <th>标题</th>
            <th>摘要</th>
            <th>内容</th>
            <th>分类</th>
            <th>作者</th>
            <th>发布时间</th>
            <th>操作</th>
        </tr>
    </div>
    <script src="./js/jquery-3.6.0.min.js"></script>
    <script src="./js/init.js"></script>
    <script src="./js/api.js"></script>
    <script src="./config/baseUrl.js"></script>
    <script>
        function update(id) {
            location.href='./addOrEdit.html?id='+id;            
        }
        function del(id){
            getBlogById(id).then(data=>{
                if(data.code===1000){
                    console.log(data);
                    let id = data.data.id;
                    $(`[key=${id}]`).remove();
                }else{
                    alert(data.msg)
                }
            })
        }
        function query(params) {
            keyword=keyword||'',
            getListWithKeyword(keyword);
        }
    </script>
</body>
</html>